#!/bin/bash
for f in ./*.24x24.svg ; do
	for i in 24 32 48 64 96 128 192 256 384 512 768 1024 ; do
		w=${i}
		h=${i}
		inkscape \
		--without-gui \
		--export-area-page \
		--export-width ${w} \
		--export-height ${h} \
		--export-png="${f/.24x24.svg/.${w}x${h}.png}" \
		"${f}"
		echo "${i} X Y ${f/.24x24.svg/.${w}x${h}.png}"
		echo "${i} X Y ${f/.24x24.svg/.${w}x${h}.png}" >>${f/.24x24.svg/.in}
	done
done
exit 0
